# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=grim
pkgver=1.3.1
pkgrel=0
pkgdesc="Grabs images from Wayland compositors"
options="!check" # No testsuite
url="https://wayland.emersion.fr/grim/"
arch="all"
license="MIT"
makedepends="meson scdoc wayland-dev wayland-protocols cairo-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/emersion/grim/archive/v$pkgver.tar.gz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="07d04681ec589bf3e48b14c3bfcdc2a6012dfe5c5c2d7ee0cba95bc128187ca0de19ec04140dbe00907778f3d68844e6a90dc35365dafa489d65048b590fdf1b  grim-1.3.1.tar.gz"
